package com.example.tse.rbhttpservice.service.shopping.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


/**
 * 下单时使用外部优惠券，每个订单只能使用一个优惠券，多次输入优惠券保留最后一个优惠券
 * @author wliu
 * edit tse
 */
public class ShoppingGetCouponByCodeResponse extends RudderResponse{
    
    private String couponId = "";
		
    
    private String couponName = "";
		
    
    private String price = "";
		
    
    private String endTime = "";
		
	
    /**
     * @return couponId
     */	
    public String getCouponId() { 
	    return this.couponId;
    };
	
	/**
     * @return couponId
     */	
    public void setCouponId(String couponId) { 
        this.couponId = couponId;
    };
    
    /**
     * @return couponName
     */	
    public String getCouponName() { 
	    return this.couponName;
    };
	
	/**
     * @return couponName
     */	
    public void setCouponName(String couponName) { 
        this.couponName = couponName;
    };
    
    /**
     * @return price
     */	
    public String getPrice() { 
	    return this.price;
    };
	
	/**
     * @return price
     */	
    public void setPrice(String price) { 
        this.price = price;
    };
    
    /**
     * @return endTime
     */	
    public String getEndTime() { 
	    return this.endTime;
    };
	
	/**
     * @return endTime
     */	
    public void setEndTime(String endTime) { 
        this.endTime = endTime;
    };
    
	
        
    public static void filter(ShoppingGetCouponByCodeResponse shopping) {
        if (shopping.getCouponId() == null) {
            shopping.setCouponId("");
        }
        if (shopping.getCouponName() == null) {
            shopping.setCouponName("");
        }
        if (shopping.getPrice() == null) {
            shopping.setPrice("");
        }
        if (shopping.getEndTime() == null) {
            shopping.setEndTime("");
        }
    }
}
